package ${package_name}.common.entity;

import com.baomidou.mybatisplus.annotation.*;
import ${package_name}.common.annotation.AutoFill;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;


@TableName(${table_name}.TABLE_NAME)
public class ${table_name} implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 数据库名
     */
    public static final String TABLE_NAME = "${db_table_name}";

    <#if model_column?exists>
        <#list model_column as model>
   /**
    * ${model.columnComment!}
    */
    public static final String ${model.columnName?upper_case} = "${model.columnName}";
        </#list>
    </#if>


    <#if model_column?exists>
        <#list model_column as model>
   /**
    * ${model.columnComment!}
    */
            <#if model.pri>
    @TableId(type = IdType.ID_WORKER_STR)
            <#elseif  model.changeColumnName?uncap_first == "createTime">
    @AutoFill
    @TableField(fill = FieldFill.INSERT)
            <#elseif  model.changeColumnName?uncap_first == "updateTime">
    @AutoFill
    @TableField(fill = FieldFill.INSERT_UPDATE)
            </#if>
    private ${model.columnType} ${model.changeColumnName?uncap_first};
        </#list>
    </#if>

    <#if model_column?exists>
        <#list model_column as model>
    public void set${model.changeColumnName} (${model.columnType} ${model.changeColumnName?uncap_first}){
        this.${model.changeColumnName?uncap_first} =  ${model.changeColumnName?uncap_first};
    }

    /**
     * ${model.columnComment!}
     */
    public ${model.columnType} get${model.changeColumnName}(){
        return this.${model.changeColumnName?uncap_first};
    }
        </#list>
    </#if>

}
